package com.xinzhi.savingpot.configure;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2017-04-05
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class ALipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "2021000116669755";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDBikpNDkPeMxIMeT2b5el0fUIEWVtQSooFCNj7FWwVR9uzLtMxwGSqHIzchRDlxppQyXq+hfsIW2AwBRqtvezcdFfdmd9/tvH4bO3YuFf9LaMJ2ZJdILue7chsgsnY6IL7bV6cm/JeUo+tcX1GDZstOv7KGZFeV/HXcuW+JjzDYNyDUe2SMavQ5C+txBfn360bCLVMwD0tLMUwiOV68PMHQaTrjYc8HXtlO/awES4ATfynaZ9ZnGw17DHekJoUjSj7ix+M1GamYpIiTCeX653u/1UbJfRzzGH3jeRfE8x31PIuyS0pCBja3vMWUB2UKFlq7g1kQfZkzsd7JH864WOLAgMBAAECggEAOmbAhQAI+sPublUngiOejsg9Y5KTO2dCvsIst5d/ReypHyjCEgE8Xxi+aMy+jJeheT9TCqrjVWI9ZEAmDMeC8gMpgHUuPBu4aH52Ry9ZXcynphFBWVjHRO37zMKqpgmDfNtD8X4dZNkFAhF8++afLMbgm5ubghyHnbvOF9LyAwJw/L53HL3rjNpszUKZJxgOTzWRRsRxAGxs6k8CV1zfjalFm9r0qBA/gIO6wrinfu+EVW8ejYPRoznkDY9MfGe4NvyDSrNso8uepay5EDX72UGy6UOq3D/Rj9zxxYPPy4hwmzRhx4FgqWABrjOtWYxXEmrjyRW26Vv5k7Xbzk5mAQKBgQDrVOJtMln5ZThc79NWYUrmJfP1ZKWUQXRhXtc22ichFkOYlj30teUaNBwzk4mLBR8afC6Oggm62lLxbB9f9BQrZg12mAwAtzhoyO/yrg9FUhJmeGFsXCWiJjITuyIixnKy7WaE4IPaMyVMnP8kHB2QXzDENwKzmNnzEVmzY5fMzwKBgQDSichOUD5SLXU5ycEJEEzWMK5tGzBOjbihqSa/h4eoy5i5a0IaWxNqFpInRh3fkasc7UHZYKfUehpmdeuBOXrLekwGex3X9rig1yRM+qZWwj0jGjDNRX5jp1Uqf6AyMXv629UGyHnIdS3okXreyVCToAMBQTb55w07WxgO5NNEhQKBgQDoJ1kn+CAik+RCaqTF9jz5Rj+guaVO2DODSxhsmFE5pskQYkbEfhyA+R9JEicB6g+BBTi4hTgsCO0CFXPuKM8s8QQfFmfg3N7dIDz13xhZflmAlQkm6NCHYb7NEDLgs3y7Xs9gDkyEmSgWqFpauRHBNubY6pvTqNp5m4guG/XIqQKBgQDDn15M1eZyOOa5QStpnommYylPG3oxIyGwpBjq0aVNQ4+uiWisUH+jjUFT2KSdPR5/DDypHFQU6zdoiJzAP4ZHVmUZiH/cUNSQLhb+p86ywlxIJ2e885tSQQKzME7LFIucNXKkkNYHWknD1JkUNH34DS99lPjeDr+OrT+XZyqeeQKBgQDgdWgg5TdFI+Dae/93AbOxuGXO4UfsNcl2gv9qa84QpzyaQxRYC+R15D6COIHf4RlQnJQ0ScLsvqfn0XlPT4b8P4qxD3oqA64qLCi9WEoYa91cM1yrKBiVZHp7AC5hDhkQtkMNbquzfDjdF328lFxe5bG+C3p7mImdTiaGyyZjVA==";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzl98O4P1bmJjsggu6Q2J6RRVeW3wcKpNu8XVHzld+YNF+S55Ss9ogVxqI/U2FTBEVBjP9+1l4RdSZh43O5YriRKN4JcKoQNBcSAlRL+vJLDnjq/6F5I7iGUmkKzX/NsWiGMeBTT/SJpy1XGOAT/bDbYp2CXqdEmA2MK6GQdckB6piL1dhEh8u7obfcWJ9HgSn9d4dvTLHkuAHRwRsUy8KCeilh8SLHLfd/AZ0IaktBzUvu/9L3xJ4s1wuWZCkWxGBfaA2VixxLNCu4H7nTYn2GGCgWjbQ3nskXpqYmyHEFOT5Qlu1NIL6VtDEctqYjLO3QNigo7R61Jpaeb3SPtPhwIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://www.jiuyuemaoyi.xyz/notify_url";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
//    public static String return_url = "http://www.jiuyuemaoyi.xyz/alipay.trade.page.pay-JAVA-UTF-8/return_url.jsp";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "UTF-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

    // 支付宝网关
//    public static String log_path = "C:\\";


//↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

    /**
     * 写日志，方便测试（看网站需求，也可以改成把记录存入数据库）
     * @param sWord 要写入日志里的文本内容
     */
//    public static void logResult(String sWord) {
//        FileWriter writer = null;
//        try {
//            writer = new FileWriter(log_path + "alipay_log_" + System.currentTimeMillis()+".txt");
//            writer.write(sWord);
//        } catch (Exception e) {
//            e.printStackTrace();
//        } finally {
//            if (writer != null) {
//                try {
//                    writer.close();
//                } catch (IOException e) {
//                    e.printStackTrace();
//                }
//            }
//        }
//    }
}